<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>IP地址计算器 - cnuu.net</title>
<meta name="keywords" content="IP地址计算,子网掩码,网络掩码,地址掩码,子网络遮罩" />
<meta name="description" content="子网掩码(subnet mask)是每个使用互联网的人必须要掌握的基础知识，只有掌握它，才能够真正理解TCP/IP协议的设置。" />
<link rel="stylesheet" type="text/css" href="css/all-base.css"/>
<link rel="stylesheet" type="text/css" href="css/toolstyle.css"/>
<script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="js/jq-public.js"></script>
<script src="js/ipcalc.js" type="text/javascript"></script>
<script src="js/ipcalc2.js" type="text/javascript"></script>
</head>
<body>
<!--Tool-MainWrap-begin-->
<div class="Tool-MainWrap wrapper clearfix">
	<div class="NetWorkWrap pb10 clearfix">
		<!--NetWork-right-begin-->
		<div class="NetWork-left fl">
			<form>
				<div class="NetWork-main01 bor-a1s">
					<h3 class="MainHead bb-blue">网络和IP地址计算器</h3>
					<div class="MainCent">
						<div class="MCentlist clearfix ptb10 bb-blue bg-blue02 ipgroup">
							<label class="w60 tr">输入IP</label>
							<input type="text" class="Intxt" size="3" maxlength="15" value="192" name="ip_1" n="ip1" />
							<input type="text" class="Intxt" size="3" maxlength="15" value="168" name="ip_2" n="ip2"/>
							<input type="text" class="Intxt" size="3" maxlength="15" value="0" name="ip_3" n="ip3"/>
							<input type="text" class="Intxt" size="3" maxlength="15" value="1" name="ip_4" n="ip4"/>
							<label class="w50 tr">掩码位</label>
							<input type="text" class="Intxt" size="2" value="24" name="bits"/>
							<input type="button" class="Inbtn" value="计算" onclick="calNBFL(this.form)" />
							<input type="button" class="Inbtn" value="清空" onclick="resetform4(this.form)" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w60 tr">可用IP</label>
							<input type="text" class="Intxt" readonly size="10" name="numofaddr" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w60 tr">掩码</label>
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="snm_1" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="snm_2" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="snm_3" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="snm_4" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w60 tr">网络</label>
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="nwadr_1" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="nwadr_2" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="nwadr_3" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="nwadr_4" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w60 tr">第一可用</label>
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="firstadr_1" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="firstadr_2" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="firstadr_3" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="firstadr_4" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w60 tr">最后可用</label>
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="lastadr_1" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="lastadr_2" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="lastadr_3" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="lastadr_4" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w60 tr">广播</label>
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="bcast_1" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="bcast_2" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="bcast_3" />
							<input type="text" class="Intxt" readonly  maxlength="3" size="3" name="bcast_4" />
						</div>
						<div class="MCentlist ptb10 col-gray04 bor-t1s mt10">
							<p>显示网络，广播，第一次和最后一个给定的网络地址</p>
							<p>在网络掩码“位格式”也被称为CIDR格式（CIDR=无类别域间路由选择）。</p>
						</div>
					</div>
				</div>
			</form>
			<form>
				<div class="NetWork-main01 bor-a1s mt20">
					<h3 class="MainHead bb-blue">子网掩码转换器（位点分十进制格式) </h3>
					<div class="MainCent">
						<div class="MCentlist clearfix ptb10 bb-blue bg-blue02">
							<label class="w82 tr">掩码</label>
							<input type="text" class="Intxt" size="4" value="24" name="bits" />
							<input type="button" class="Inbtn" value="计算"  onclick="calcNWmaskForm2(this.form)"  />
							<input type="button" class="Inbtn" value="清空"  onclick="resetform2(this.form)" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w82 tr">Dec 十进制</label>
							<input type="text" class="Intxt" readonly size="3" name="snm_1" />
							<input type="text" class="Intxt" readonly size="3" name="snm_2" />
							<input type="text" class="Intxt" readonly size="3" name="snm_3" />
							<input type="text" class="Intxt" readonly size="3" name="snm_4" />
						</div>
						<div class="MCentlist clearfix ptb10">
							<label class="w82 tr">Hex十六进制</label>
							<input type="text" class="Intxt" readonly size="2" name="hex_1" />
							<input type="text" class="Intxt" readonly size="2" name="hex_2" />
							<input type="text" class="Intxt" readonly size="2" name="hex_3" />
							<input type="text" class="Intxt" readonly size="2" name="hex_4" />
						</div>
					</div>
				</div>
			</form>
			<form>
				<div class="NetWork-main01 bor-a1s mt20">
					<h3 class="MainHead bb-blue">网络/节点计算器</h3>
					<div class="MainCent">
						<div class="MCentlist clearfix pt10 bg-blue02 ipgroup">
							<label class="w60 tr">子网掩码</label>
							<input type="text" class="Intxt" name="snm1a" size="3" maxlength="15" value="255" n="ip1" />
							<input type="text" class="Intxt" name="snm2a" size="3" maxlength="15" value="255" n="ip2" />
							<input type="text" class="Intxt" name="snm3a" size="3" maxlength="15" value="255" n="ip3" />
							<input type="text" class="Intxt" name="snm4a" size="3" maxlength="15" value="0" n="ip4" />
						</div>
						<div class="MCentlist clearfix ptb10 bb-blue bg-blue02 ipgroup">
							<label class="w60 tr">TCP/IP</label>
							<input type="text" class="Intxt" name="oct1a" size="3" maxlength="15" value="192" n="ip1" />
							<input type="text" class="Intxt" name="oct2a" size="3" maxlength="15" value="168" n="ip2" />
							<input type="text" class="Intxt" name="oct3a" size="3" maxlength="15" value="0" n="ip3" />
							<input type="text" class="Intxt" name="oct4a" size="3" maxlength="15" value="1" n="ip4" />
							<input type="button" class="Inbtn" value="计算" onclick="compute(this.form)" />
							<input type="button" class="Inbtn" value="清空" onclick="nnclear(this.form)" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w60 tr">网络</label>
							<input type="text" class="Intxt" readonly name="nw1a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly name="nw2a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly name="nw3a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly name="nw4a" size="3" maxlength="3" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w60 tr">节点/主机</label>
							<input type="text" class="Intxt" readonly  name="node1a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly  name="node2a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly  name="node3a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly  name="node4a" size="3" maxlength="3" />
						</div>
						<div class="MCentlist clearfix ptb10">
							<label class="w60 tr">广播地址</label>
							<input type="text" class="Intxt" readonly  name="broad1a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly  name="broad2a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly  name="broad3a" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly  name="broad4a" size="3" maxlength="3" />
						</div>
					</div>
				</div>
			</form>
			<form>
				<div class="NetWork-main01 bor-a1s mt20">
					<h3 class="MainHead bb-blue">十进制子网掩码逆算器</h3>
					<div class="MainCent">
						<div class="MCentlist clearfix pt10 ipgroup">
							<label class="w70 tr">点格式掩码</label>
							<input type="text" class="Intxt" name="snm1d" size="3" maxlength="15" value="255" n="ip1" />
							<input type="text" class="Intxt" name="snm2d" size="3" maxlength="15" value="255" n="ip2" />
							<input type="text" class="Intxt" name="snm3d" size="3" maxlength="15" value="255" n="ip3" />
							<input type="text" class="Intxt" name="snm4d" size="3" maxlength="15" value="0" n="ip4" />
							<input type="button" class="Inbtn" value="计算" onclick="computeINV1(this.form);" />
							<input type="button" class="Inbtn" value="清空" onclick="sjzclear(this.form);" />
						</div>
						<div class="MCentlist clearfix ptb10">
							<label class="w70 tr">逆算掩码</label>
							<input type="text" class="Intxt" readonly name="snm1e" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly name="snm2e" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly name="snm3e" size="3" maxlength="3" />
							<input type="text" class="Intxt" readonly name="snm4e" size="3" maxlength="3" />
						</div>
					</div>
				</div>
			</form>
			<form>
				<div class="NetWork-main01 bor-a1s mt20">
					<h3 class="MainHead bb-blue">十进制子网掩码换算器</h3>
					<div class="MainCent">
						<div class="MCentlist clearfix pt10 ipgroup">
							<label class="w70 tr">点格式掩码</label>
							<input type="text" class="Intxt" name="snm1c" size="3" maxlength="15" n="ip1" />
							<input type="text" class="Intxt" name="snm2c" size="3" maxlength="15" n="ip2" />
							<input type="text" class="Intxt" name="snm3c" size="3" maxlength="15" n="ip3" />
							<input type="text" class="Intxt" name="snm4c" size="3" maxlength="15" n="ip4" />
							<input type="button" class="Inbtn" value="计算"  onclick="computeSNMA(this.form);" />
							<input type="button" class="Inbtn" value="清空"  onclick="dgsclear(this.form);" />
						</div>
						<div class="MCentlist clearfix ptb10">
							<label class="w70 tr">掩码位元数</label>
							<input type="text" class="Intxt" name="snmbitsc" size="2" maxlength="2" value="24" />
							<input type="button" class="Inbtn" value="计算" onclick="computeSNMB(this.form);" />
							<input type="button" class="Inbtn" value="清空" onclick="ymwclear(this.form);" />
						</div>
					</div>
				</div>
			</form>
			<form>
				<div class="NetWork-main01 bor-a1s mt20">
					<h3 class="MainHead bb-blue">计算位补一个IP地址（逆）</h3>
					<div class="MainCent">
						<div class="MCentlist clearfix pt10 ipgroup">
							<input type="text" class="Intxt" size="3" maxlength="15" value="255" name="ip_1" n="ip1" />
							<input type="text" class="Intxt" size="3" maxlength="15" value="255" name="ip_2" n="ip2" />
							<input type="text" class="Intxt" size="3" maxlength="15" value="255" name="ip_3" n="ip3" />
							<input type="text" class="Intxt" size="3" maxlength="15" value="255" name="ip_4" n="ip4" />
							<input type="button" class="Inbtn" value="计算"  onclick="calcIpInvert(this.form)" />
							<input type="button" class="Inbtn" value="清空" onclick="resetform8(this.form)"  />
						</div>
						<div class="MCentlist clearfix ptb10">
							<input type="text" class="Intxt" readonly size="3" name="invert_1" />
							<input type="text" class="Intxt" readonly size="3" name="invert_2" />
							<input type="text" class="Intxt" readonly size="3" name="invert_3" />
							<input type="text" class="Intxt" readonly size="3" name="invert_4" />
						</div>
					</div>
				</div>
			</form>
		</div>
		<!--NetWork-right-end-->
		<!--NetWork-right-begin-->
		<div class="NetWork-right fr">
			<form>
				<div class="NetWork-main01 bor-a1s">
					<h3 class="MainHead bb-blue">网络和IP地址计算器</h3>
					<div class="MainCent pr">
						<div class="MCentlist clearfix pt10 ipgroup">
							<label class="w70 tr">输入IP/TCP</label>
							<input type="text" class="Intxt" name="oct1" size="3" maxlength="15" value="192" n="ip1" />
							<input type="text" class="Intxt" name="oct2" size="3" maxlength="15" value="168" n="ip2" />
							<input type="text" class="Intxt" name="oct3" size="3" maxlength="15" value="0" n="ip3" />
							<input type="text" class="Intxt" name="oct4" size="3" maxlength="15" value="1" n="ip4" />
							<label class="w60 tr pr5">网络类型</label>
							<div class="NetWork-choese ToolChoese mr15">
								<div class="NetWorkW-choese pr w60">
									<div id="nettype" class="NetWorkW-cont SearChoese w50">默认</div>
									<input name="cf" value="1" type="hidden" />
									<span class="NWicon-drop-down SearChoese"></span>
									<ul class="NetWorkC-down SearChoese-show w60">
										<li><a href="javascript:" val="1">默认</a></li>
										<li><a href="javascript:" val="2">A类网</a></li>
										<li><a href="javascript:" val="3">B类网</a></li>
										<li><a href="javascript:" val="4">C类网</a></li>
									</ul>
								</div>
							</div>
							<!-- <input type="text" class="Intxt" />-->
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w70 tr pr10">子网ip量</label>
							<div class="NetWork-choese ToolChoese">
								<div class="NetWorkW-choese pr w70">
									<div id="netnum" class="NetWorkW-cont SearChoese w60"></div>
									<input name="network" value="0" type="hidden" />
									<span class="NWicon-drop-down SearChoese"></span>
									<ul class="NetWorkC-down SearChoese-show w70">
										<li><a href="javascript:" val="0">&nbsp;</a></li>
										<li><a href="javascript:" val="1">1</a></li>
										<li><a href="javascript:" val="2">2</a></li>
										<li><a href="javascript:" val="4">4</a></li>
										<li><a href="javascript:" val="8">8</a></li>
										<li><a href="javascript:" val="16">16</a></li>
										<li><a href="javascript:" val="32">32</a></li>
										<li><a href="javascript:" val="64">64</a></li>
										<li><a href="javascript:" val="128">128</a></li>
										<li><a href="javascript:" val="256">256</a></li>
										<li><a href="javascript:" val="512">512</a></li>
										<li><a href="javascript:" val="1024">1024</a></li>
										<li><a href="javascript:" val="2048">2048</a></li>
										<li><a href="javascript:" val="4096">4096</a></li>
										<li><a href="javascript:" val="8192">8192</a></li>
										<li><a href="javascript:" val="16384">16384</a></li>
										<li><a href="javascript:" val="32768">32768</a></li>
										<li><a href="javascript:" val="65536">65536</a></li>
										<li><a href="javascript:" val="131072">131072</a></li>
										<li><a href="javascript:" val="262144">262144</a></li>
										<li><a href="javascript:" val="524288">524288</a></li>
										<li><a href="javascript:" val="1048576">1048576</a></li>
										<li><a href="javascript:" val="2097152">2097152</a></li>
										<li><a href="javascript:" val="4194304">4194304</a></li>
										<li><a href="javascript:" val="8388608">8388608</a></li>
									</ul>
								</div>
							</div>
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w70 tr">节点/主机</label>
							<div class="NetWork-choese ToolChoese fl ml10">
								<div class="NetWorkW-choese pr w100">
									<div id="nodenum" class="NetWorkW-cont SearChoese w90"></div>
									<input name="node" value="0" type="hidden" />
									<span class="NWicon-drop-down SearChoese"></span>
									<ul class="NetWorkC-down SearChoese-show w100">
										<li><a href="javascript:" val="0">&nbsp;</a></li>
										<li><a href="javascript:" val="1">1</a></li>
										<li><a href="javascript:" val="2">2</a></li>
										<li><a href="javascript:" val="4">4</a></li>
										<li><a href="javascript:" val="8">8</a></li>
										<li><a href="javascript:" val="16">16</a></li>
										<li><a href="javascript:" val="32">32</a></li>
										<li><a href="javascript:" val="64">64</a></li>
										<li><a href="javascript:" val="128">128</a></li>
										<li><a href="javascript:" val="256">256</a></li>
										<li><a href="javascript:" val="512">512</a></li>
										<li><a href="javascript:" val="1024">1024</a></li>
										<li><a href="javascript:" val="2048">2048</a></li>
										<li><a href="javascript:" val="4096">4096</a></li>
										<li><a href="javascript:" val="8192">8192</a></li>
										<li><a href="javascript:" val="16384">16384</a></li>
										<li><a href="javascript:" val="32768">32768</a></li>
										<li><a href="javascript:" val="65536">65536</a></li>
										<li><a href="javascript:" val="131072">131072</a></li>
										<li><a href="javascript:" val="262144">262144</a></li>
										<li><a href="javascript:" val="524288">524288</a></li>
										<li><a href="javascript:" val="1048576">1048576</a></li>
										<li><a href="javascript:" val="2097152">2097152</a></li>
										<li><a href="javascript:" val="4194304">4194304</a></li>
										<li><a href="javascript:" val="8388608">8388608</a></li>
										<li><a href="javascript:" val="16777216">16777216</a></li>
										<li><a href="javascript:" val="33554432">33554432</a></li>
										<li><a href="javascript:" val="67108864">67108864</a></li>
										<li><a href="javascript:" val="134217728">134217728</a></li>
										<li><a href="javascript:" val="268435456">268435456</a></li>
										<li><a href="javascript:" val="536870912">536870912</a></li>
										<li><a href="javascript:" val="1073741824">1073741824</a></li>
										<li><a href="javascript:" val="2147483648">2147483648</a></li>
									</ul>
								</div>
							</div>
							<input type="button" class="Inbtn" value="计算"  onclick="compute2(this.form);" />
							<input type="button" class="Inbtn" value="清空" onclick="wlclear(this.form);" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w70 tr">网络类型</label>
							<input type="text" class="Intxt" name="nwclass" size="7" maxlength="7" />
							<input type="text" class="Intxt" name="subsuper" size="14" maxlength="14" />
							<input type="text" class="Intxt" name="nwclass1" size="7" maxlength="7" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w70 tr">子网掩码</label>
							<input type="text" class="Intxt" name="snm1" size="3" maxlength="3" />
							<input type="text" class="Intxt" name="snm2" size="3" maxlength="3" />
							<input type="text" class="Intxt" name="snm3" size="3" maxlength="3" />
							<input type="text" class="Intxt" name="snm4" size="3" maxlength="3" />
							<label class="w70 tr">或</label>
							<input type="text" class="Intxt" name="snmbits" size="3" maxlength="3" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w70 tr">子网</label>
							<input type="text" class="Intxt w100" name="nwquant" size="10" maxlength="8" />
							<input type="button" value="获取网络列表" class="Inbtn w100 tc ObtLBtN" onclick="listsubnets(this.form);" />
						</div>
						<div class="MCentlist clearfix ptb10">
							<label class="w70 tr">节点/主机</label>
							<input type="text" class="Intxt w100" name="nodequant" size="10" maxlength="8" />
						</div>
						<div class="ObtainList autohide" id="netlist">
							<h4 class="lh30 col-blue02 pr">网络列表<span class="col-gray02 lh24 fwnone pl10">网络 0.0.0.0 ，掩码0.0.0.0"</span><a href="javascript:" class="ObtLClose">×</a></h4>
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tbody>
									<tr>
										<th rowspan="2">网络</th>
										<th colspan="2">主机</th>
										<th rowspan="2">广播地址</th>
									</tr>
									<tr>
										<th>起始</th>
										<th>结束</th>
									</tr>
									<tr>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
									</tr>
									<tr>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
									</tr>
									<tr>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
									</tr>
									<tr>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
										<td>0.0.0.0</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				</div>
			</form>
			<form>
				<div class="NetWork-main01 bor-a1s mt20">
					<h3 class="MainHead bb-blue">通过主机数量计算掩码地址转换器</h3>
					<div class="MainCent">
						<div class="MCentlist clearfix ptb10 bb-blue bg-blue02">
							<label class="w60">需要数量</label>
							<input type="text" class="Intxt" size="4" value="5" name="numofaddr" />
							<input type="button" class="Inbtn" value="计算" onclick="calcNeeded(this.form)" />
							<input type="button" class="Inbtn" value="清空" onclick="resetform6(this.form)" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w50 pr10 tr">掩码</label>
							<input type="text" class="Intxt" readonly size="4" name="bits" />
							<label class="w110 tr"> dotted dec. 掩码</label>
							<input type="text" class="Intxt" readonly size="3" name="snm_1" />
							<input type="text" class="Intxt" readonly size="3" name="snm_2" />
							<input type="text" class="Intxt" readonly size="3" name="snm_3" />
							<input type="text" class="Intxt" readonly size="3" name="snm_4" />
						</div>
						<div class="MCentlist clearfix ptb10">
							<label class="w60">可用数量</label>
							<input type="text" class="Intxt w100" readonly size="10" name="maxaddr" />
						</div>
					</div>
				</div>
			</form>
			<form>
				<div class="NetWork-main01 bor-a1s mt20">
					<h3 class="MainHead bb-blue">TCP/IP 进制转换器</h3>
					<div class="MainCent">
						<div class="MCentlist clearfix pt10 ipgroup">
							<label class="w80 tr">点格式十进制</label>
							<input type="text" class="Intxt" name="oct1b" size="3" maxlength="15" value="192" n="ip1" />
							<input type="text" class="Intxt" name="oct2b" size="3" maxlength="15" value="168" n="ip2" />
							<input type="text" class="Intxt" name="oct3b" size="3" maxlength="15" value="0" n="ip3" />
							<input type="text" class="Intxt" name="oct4b" size="3" maxlength="15" value="1" n="ip4" />
							<input type="button" class="Inbtn" value="计算" onclick="compute3(this.form);" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w80 tr">或 二进制</label>
							<input type="text" class="Intxt w60" name="bin1b" size="8" maxlength="8" />
							<input type="text" class="Intxt w60" name="bin2b" size="8" maxlength="8" />
							<input type="text" class="Intxt w60" name="bin3b" size="8" maxlength="8" />
							<input type="text" class="Intxt w60" name="bin4b" size="8" maxlength="8" />
							<input type="button" class="Inbtn" value="计算" onclick="compute4(this.form);" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w80 tr">或 十六进制</label>
							<input type="text" class="Intxt" name="hex1b" size="2" maxlength="2" />
							<input type="text" class="Intxt" name="hex2b" size="2" maxlength="2" />
							<input type="text" class="Intxt" name="hex3b" size="2" maxlength="2" />
							<input type="text" class="Intxt" name="hex4b" size="2" maxlength="2" />
							<input type="button" class="Inbtn" value="计算" onclick="compute5(this.form);" />
						</div>
						<div class="MCentlist clearfix ptb10">
							<label class="w80 tr">或 十进制</label>
							<input type="text" class="Intxt w100" name="dec1b" size="10" maxlength="10" />
							<input type="button" class="Inbtn" value="计算" onclick="compute6(this.form);" />
						</div>
					</div>
				</div>
			</form>
			<form>
				<div class="NetWork-main01 bor-a1s mt20">
					<h3 class="MainHead bb-blue">掩码转换到网络可用地址的数量</h3>
					<div class="MainCent">
						<div class="MCentlist clearfix ptb10 bb-blue bg-blue02">
							<label class="w70 tr">掩码</label>
							<input type="text" class="Intxt" size="2" value="27" name="bits" />
							<input type="button" class="Inbtn" value="计算" onclick="calcAmount(this.form)" />
							<input type="button" class="Inbtn" value="清空" onclick="resetform7(this.form)" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w70 tr">可用地址量</label>
							<input type="text" class="Intxt w100" readonly size="10" name="numofaddr" />
							<label class="w70 tr">可用总量</label>
							<input type="text" class="Intxt w100" readonly size="10" name="maxaddr" />
						</div>
						<div class="MCentlist clearfix pt10">
							<label class="w70 tr">点分十进制</label>
							<input type="text" class="Intxt" readonly size="3" name="snm_1" />
							<input type="text" class="Intxt" readonly size="3" name="snm_2" />
							<input type="text" class="Intxt" readonly size="3" name="snm_3" />
							<input type="text" class="Intxt" readonly size="3" name="snm_4" />
						</div>
						<div class="MCentlist ptb10 col-gray04 bor-t1s mt10">
							<p>IP组播地址范围</p>
							<p>所有的多播地址可以很容易被认出，因为同位模式“1110”开始。</p>
							<p>224.0.0.0 - 224.0.0.255知名多播地址，控制通道</p>
							<p>224.0.1.0 - 238.255.255.255全球范围的（互联网宽）组播地址</p>
							<p>239.0.0.0 - 239.255.255.255本地多播地址</p>
						</div>
					</div>
				</div>
			</form>
		</div>
		<!--NetWork-right-end-->
	</div>
</div>
<!--Tool-MainWrap-begin-->
<script type="text/javascript">
    function nnclear(nform) {
        nform.snm1a.value = 255;
        nform.snm2a.value = 255;
        nform.snm3a.value = 255;
        nform.snm4a.value = 0;

        nform.oct1a.value = 192;
        nform.oct2a.value = 168;
        nform.oct3a.value = 0;
        nform.oct4a.value = 1;

        nform.nw1a.value = "";
        nform.nw2a.value = "";
        nform.nw3a.value = "";
        nform.nw4a.value = "";

        nform.node1a.value = "";
        nform.node2a.value = "";
        nform.node3a.value = "";
        nform.node4a.value = "";

        nform.broad1a.value = "";
        nform.broad2a.value = "";
        nform.broad3a.value = "";
        nform.broad4a.value = "";
    }
    function sjzclear(sform) {
        sform.snm1d.value = 255;
        sform.snm2d.value = 255;
        sform.snm3d.value = 255;
        sform.snm4d.value = 0;

        sform.snm1e.value = "";
        sform.snm2e.value = "";
        sform.snm3e.value = "";
        sform.snm4e.value = "";
    }
    function dgsclear(sform) {
        sform.snm1c.value = "";
        sform.snm2c.value = "";
        sform.snm3c.value = "";
        sform.snm4c.value = "";
    }
    function ymwclear(sform) {
        sform.snmbitsc.value = 24;
    }
    function wlclear(sform) {
        sform.oct1.value = 192;
        sform.oct2.value = 168;
        sform.oct3.value = 0;
        sform.oct4.value = 1;

        jQuery("#nettype").text("默认");
        sform.cf.value = 1;

        jQuery("#netnum").text("");
        sform.network.value = 0;

        jQuery("#nodenum").text("");
        sform.node.value = 0;

        sform.nwclass.value = "";
        sform.subsuper.value = "";
        sform.nwclass1.value = "";
        sform.snm1.value = "";
        sform.snm2.value = "";
        sform.snm3.value = "";
        sform.snm4.value = "";
        sform.snmbits.value = "";
        sform.nwquant.value = "";
        sform.nodequant.value = "";
    }
//    jQuery(".ObtLClose").on("click",function(){
//        jQuery(".ObtainList").addClass(" autohide");
//    });
//    jQuery(".ToolChoese1").each(function () {
//        _select({
//            select: jQuery(this).find(".SearChoese"),
//            options: jQuery(this).find("ul.SearChoese-show"),
//            option: jQuery(this).find("ul.SearChoese-show li a"),
//            t: "slide", //效果（可选参数）
//            parents: jQuery(".ToolChoese1"),//多个select时，传入父级（可选参数）
//            callback:EmptyHosts
//        });
//    });
//    jQuery(".ToolChoese2").each(function () {
//        _select({
//            select: jQuery(this).find(".SearChoese"),
//            options: jQuery(this).find("ul.SearChoese-show"),
//            option: jQuery(this).find("ul.SearChoese-show li a"),
//            t: "slide", //效果（可选参数）
//            parents: jQuery(".ToolChoese2"),//多个select时，传入父级（可选参数）
//            callback:EmptyNetwork
//        });
//    });
</script>
<!--footer-public-begin-->
<div class="wrapper mt10">
	<div id="centerTxt"></div>
	<div class="ToolsWrap" id="centerImg"></div>
	<div class="ToolAbout wrapper03">
		<div class="clearfix">
			<h4 class="HeadH4 YaHei fz16 col-blue02 fwnone fl">工具简介</h4>
			<div class="fr fz14" id="toolsIntro"> </div>
		</div>
		<div class="col-gray01 ToolAbCont">
			<p>子网掩码是一个32位地址，用于屏蔽IP地址的一部分以区别网络标识和主机标识，并说明该IP地址是在局域网上，还是在远程网上。</p>
			<p>子网掩码不能单独存在，它必须结合IP地址一起使用。子网掩码只有一个作用，就是将某个IP地址划分成网络地址和主机地址两部分。</p>
			<p>子网掩码——屏蔽一个IP地址的网络部分的“全1”比特模式。对于A类地址来说，默认的子网掩码是255.0.0.0；对于B类地址来说默认的子网掩码是255.255.0.0；对于C类地址来说默认的子网掩码是255.255.255.0。</p>
		</div>
	</div>
</div>
</body>
</html>
